<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<a href="index.html">返回</a>
控制台查看stu
删除命令 delete stu.name
    <script>
        ss ='男'
        let stu={
            name:"张三",
            age:13
        }

        Object.defineProperty(stu,"sex",{
            // value:"男",
            enumerable:true,  //是否可枚举
            // writable:true ,      //是否可写
            // configurable:true,   // 是否可删除属性
            get:function (){
                return ss;
            },
            set(value){
                ss =value;
            }
        })
        console.log(Object.keys(stu))
    </script>
</body>
</html>